package proxy;

public class A implements OriginalInterface{
	private OriginalInterface original ;

	public void setOriginal(OriginalInterface original) {
		this.original = original;
	}
	
	public void work(){
		System.out.println("log before......");
		original.work();
	}
	
	public static void main(String args[]){
		A a = new A() ;
		OriginalInterface ori = new Original() ;
		a.setOriginal(ori);
		a.work(); 
	}
	
}
